package com.dgac.publicresource.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class User {
    /**
     * 用户id
     */
    private String id;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 密码
     */
    private String password;

    /**
     * 用户名
     */
    private String name;

    /**
     * 用户头像
     */
    private String icon = "";

    /**
     * 用户创建时间
     */
    private LocalDateTime createTime;

    /**
     * 用户修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 地摊id
     */
    private Long shopId;

    /**
     * 用户余额
     */
    private Long balance;
}
